package com.aspose.cells;

class zkn {
   private com.aspose.cells.b.a.a.zd a = new com.aspose.cells.b.a.a.zd();

   zkn(com.aspose.cells.b.a.a.zd var1, boolean var2) {
      int var3 = 0;
      if (var2) {
         this.a.b(var3++, 255);
         this.a.b(var3++, '\uff00');
         this.a.b(var3++, 16711680);
         this.a.b(var3++, '\uffff');
         this.a.b(var3++, 16711935);
         this.a.b(var3++, 16776960);
         this.a.b(var3++, 128);
         this.a.b(var3++, '耀');
         this.a.b(var3++, 8388608);
         this.a.b(var3++, '肀');
         this.a.b(var3++, 8388736);
         this.a.b(var3++, 8421376);
         this.a.b(var3++, 12632256);
         this.a.b(var3++, 8421504);
      }

      if (var1 != null && var1.b() != 0) {
         for(int var4 = 0; var4 < var1.b(); ++var4) {
            this.a.b(var3++, var1.d((Object)var4));
         }
      } else {
         this.a.b(var3++, 16751001);
         this.a.b(var3++, 6697881);
         this.a.b(var3++, 13434879);
         this.a.b(var3++, 16777164);
         this.a.b(var3++, 6684774);
         this.a.b(var3++, 8421631);
         this.a.b(var3++, 13395456);
         this.a.b(var3++, 16764108);
         this.a.b(var3++, 8388608);
         this.a.b(var3++, 16711935);
         this.a.b(var3++, '\uffff');
         this.a.b(var3++, 16776960);
         this.a.b(var3++, 8388736);
         this.a.b(var3++, 128);
         this.a.b(var3++, 8421376);
         this.a.b(var3++, 16711680);
         this.a.b(var3++, 16763904);
         this.a.b(var3++, 16777164);
         this.a.b(var3++, 13434828);
         this.a.b(var3++, 10092543);
         this.a.b(var3++, 16764057);
         this.a.b(var3++, 13408767);
         this.a.b(var3++, 16751052);
         this.a.b(var3++, 10079487);
         this.a.b(var3++, 16737843);
         this.a.b(var3++, 13421619);
         this.a.b(var3++, '척');
         this.a.b(var3++, '쳿');
         this.a.b(var3++, '駿');
         this.a.b(var3++, 26367);
         this.a.b(var3++, 10053222);
         this.a.b(var3++, 9868950);
         this.a.b(var3++, 6697728);
         this.a.b(var3++, 6723891);
         this.a.b(var3++, 13056);
         this.a.b(var3++, 13107);
         this.a.b(var3++, 13209);
         this.a.b(var3++, 6697881);
         this.a.b(var3++, 10040115);
         this.a.b(var3++, 3355443);
         this.a.b(var3++, 0);
         this.a.b(var3++, 16777215);
         this.a.b(var3++, 255);
         this.a.b(var3++, '\uff00');
         this.a.b(var3++, 16711680);
         this.a.b(var3++, '\uffff');
         this.a.b(var3++, 16711935);
         this.a.b(var3++, 16776960);
         this.a.b(var3++, 128);
         this.a.b(var3++, '耀');
         this.a.b(var3++, 8388608);
         this.a.b(var3++, '肀');
         this.a.b(var3++, 8388736);
         this.a.b(var3++, 8421376);
         this.a.b(var3++, 12632256);
         this.a.b(var3++, 8421504);
      }

   }

   Color a(int var1) {
      int var2 = (Integer)this.a.d((Object)(var1 % this.a.b()));
      int var3 = var2 & 255;
      int var4 = (var2 & '\uff00') >> 8;
      int var5 = (var2 & 16711680) >> 16;
      return Color.fromArgb(var3, var4, var5);
   }

   private void a(int var1, int var2) {
      this.a.b(var2, var1);
   }

   void a(Color[] var1, boolean var2) {
      if (var1 != null && var1.length != 0) {
         int var3 = 0;
         if (var2) {
            var3 = 14;
         }

         for(int var4 = 0; var4 < var1.length; ++var4) {
            int var5 = (var1[var4].getR() & 255) + ((var1[var4].getG() & 255) << 8) + ((var1[var4].getB() & 255) << 16);
            this.a(var5, var3);
            ++var3;
         }

      }
   }
}
